USE [ZBGL]
GO

/****** Object:  Table [dbo].[DutyRecord]    Script Date: 08/28/2013 02:32:20 ******/
SET ANSI_NULLS ON
GO

SET QUOTED_IDENTIFIER ON
GO

SET ANSI_PADDING ON
GO

CREATE TABLE [dbo].[DutyRecord](
	[id] [int] IDENTITY(1,1) NOT NULL,
	[dutyMan] [varchar](50) NOT NULL,
	[dutyTime] [varchar](50) NOT NULL,
	[productionSituation] [text] NULL,
	[security] [text] NULL,
	[securityProduction] [text] NULL,
	[postResponsibility] [text] NULL,
	[leftProblem] [text] NULL,
	[dutyManFullName] [varchar](50) NULL,
	[entryTime] [varchar](50) NULL,
 CONSTRAINT [PK_DutyRecord] PRIMARY KEY CLUSTERED 
(
	[id] ASC
)WITH (PAD_INDEX  = OFF, STATISTICS_NORECOMPUTE  = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS  = ON, ALLOW_PAGE_LOCKS  = ON) ON [PRIMARY]
) ON [PRIMARY] TEXTIMAGE_ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[DutyRecord] ADD  CONSTRAINT [DF_DutyRecord_productionSituation]  DEFAULT ('无') FOR [productionSituation]
GO

ALTER TABLE [dbo].[DutyRecord] ADD  CONSTRAINT [DF_DutyRecord_security]  DEFAULT ('无') FOR [security]
GO

ALTER TABLE [dbo].[DutyRecord] ADD  CONSTRAINT [DF_DutyRecord_securityProduction]  DEFAULT ('无') FOR [securityProduction]
GO

ALTER TABLE [dbo].[DutyRecord] ADD  CONSTRAINT [DF_DutyRecord_postResponsibility]  DEFAULT ('无') FOR [postResponsibility]
GO

ALTER TABLE [dbo].[DutyRecord] ADD  CONSTRAINT [DF_DutyRecord_leftProblem]  DEFAULT ('无') FOR [leftProblem]
GO

